<template lang="pug">
  div.m-hcity
    dl
      dt 热门城市
      dd(v-for="item in list" :key="item.id") {{item.name===`市辖区`?item.province:item.name}}
</template>

<script type="text/ecmascript-6">
  export default {
    data() {
      return {
        list: []
      }
    },
    async mounted() {
      let {status, data: {hots}} = await this.$axios.get(`/geo/hotCity`)
      if (status === 200) {
        this.list = hots
      }
    }
  }
</script>

<style lang="scss">
  @import '@/assets/css/changecity/hot.scss';
</style>
<style lang="stylus">
  .m-hcity
    background-color #2bb8aa
</style>
